package GUI;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.EventQueue;

import javax.swing.DefaultComboBoxModel;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JToolBar;
import javax.swing.SwingConstants;
import javax.swing.UIManager;
import javax.swing.border.EmptyBorder;

import com.toedter.calendar.JCalendar;
import java.awt.Component;
import java.awt.Rectangle;

public class VistaEditarIncidencias extends JFrame {

	private JPanel contentPane;
	private JTextField textField_1;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					VistaEditarIncidencias frame = new VistaEditarIncidencias();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public VistaEditarIncidencias() {
		setResizable(false);
		setTitle("Blue Cherry - Editar Incidencias");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 524, 342);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		contentPane.setLayout(new BorderLayout(0, 0));
		setContentPane(contentPane);
		setLocationRelativeTo(null);
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (Exception e) {
			e.printStackTrace();
		}
		
		JToolBar toolBar = new JToolBar();
		contentPane.add(toolBar, BorderLayout.NORTH);
		
		JLabel lblNewLabel = new JLabel(" Alumno ");
		toolBar.add(lblNewLabel);
		
		JComboBox comboBox_1 = new JComboBox();
		comboBox_1.setAlignmentX(Component.LEFT_ALIGNMENT);
		comboBox_1.setModel(new DefaultComboBoxModel(new String[] {"Cruz Cana, Jes\u00FAs Miguel", "S\u00E1iz Saez, Jorge"}));
		toolBar.add(comboBox_1);
		
		JLabel lblProfesor = new JLabel("  Profesor ");
		toolBar.add(lblProfesor);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setModel(new DefaultComboBoxModel(new String[] {"Saiz S\u00E1ez, Jorge"}));
		toolBar.add(comboBox);
		
		JPanel panel = new JPanel();
		contentPane.add(panel, BorderLayout.CENTER);
		panel.setLayout(null);
		
		JSeparator separator = new JSeparator();
		separator.setBounds(0, 0, 454, 1);
		panel.add(separator);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBounds(0, 114, 508, 168);
		panel.add(panel_1);
		panel_1.setLayout(null);
		
		JLabel lblNewLabel_2 = new JLabel("Tipo de incidencia:");
		lblNewLabel_2.setBounds(4, 36, 95, 14);
		panel_1.add(lblNewLabel_2);
		
		JComboBox comboBox_3 = new JComboBox();
		comboBox_3.setModel(new DefaultComboBoxModel(new String[] {"Leve", "Moderada", "Grave", "Muy grave", "Cat\u00E1strofe nuclear"}));
		comboBox_3.setBounds(109, 33, 88, 20);
		panel_1.add(comboBox_3);
		
		JLabel lblFaltaN = new JLabel("Incidencia n\u00BA:");
		lblFaltaN.setBounds(4, 6, 64, 14);
		panel_1.add(lblFaltaN);
		
		JSeparator separator_1 = new JSeparator();
		separator_1.setBounds(0, 27, 498, 2);
		panel_1.add(separator_1);
		
		JLabel lblNewLabel_3 = new JLabel("Descripcion:");
		lblNewLabel_3.setBounds(4, 61, 64, 14);
		panel_1.add(lblNewLabel_3);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(0, 80, 508, 88);
		panel_1.add(scrollPane);
		
		JTextArea textArea = new JTextArea();
		scrollPane.setViewportView(textArea);
		
		JLabel lblNewLabel_4 = new JLabel("Hora");
		lblNewLabel_4.setBounds(134, 6, 32, 14);
		panel_1.add(lblNewLabel_4);
		
		JLabel lblLugar = new JLabel("Lugar");
		lblLugar.setBounds(267, 6, 32, 14);
		panel_1.add(lblLugar);
		
		textField_1 = new JTextField();
		textField_1.setBounds(309, 3, 199, 20);
		panel_1.add(textField_1);
		textField_1.setColumns(10);
		
		JComboBox comboBox_2 = new JComboBox();
		comboBox_2.setBounds(169, 3, 72, 20);
		panel_1.add(comboBox_2);
		
		textField = new JTextField();
		textField.setEditable(false);
		textField.setBounds(73, 3, 51, 20);
		panel_1.add(textField);
		textField.setColumns(10);
		
		JCalendar calendar = new JCalendar();
		calendar.getYearChooser().getSpinner().setPreferredSize(new Dimension(27, 20));
		calendar.getYearChooser().getSpinner().setBounds(new Rectangle(0, 0, 30, 0));
		calendar.setBounds(6, 12, 502, 102);
		panel.add(calendar);
	}
}
